package com.travelparadise.formbeans;

import java.util.List;
import java.util.Set;

import com.travelparadise.domain.Activite;
import com.travelparadise.domain.Commande;
import com.travelparadise.domain.Hotel;
import com.travelparadise.domain.Personne;
import com.travelparadise.domain.Reservation;
import com.travelparadise.domain.Vol;
import com.travelparadise.service.ReservationService;

public class ReservationBean {

	private ReservationService reservationService;
	private Reservation reservation;
	
	private Set<Vol> volList;
	private Set<Hotel> hotelList;
	private Set<Activite> activiteList;
	private Set<Personne> voyageurList;
	
	private int idVilleDepart;
	private int idVilleDestination;
	
	private List<Reservation> reservations;

	
	public ReservationBean(){
		reservation = new Reservation();
	}
	
	public String validReservation(){
		
		reservation.setVols(volList);
		reservation.setActivites(activiteList);
		reservation.setHotels(hotelList);
		reservation.setVoyageurs(voyageurList);
		
		reservations.add(reservation);
		
		return "success";
	}
	
	public String selectionVoyageurs(){
		
		
		
		return "success";
	}
	
	public void modifyReservation(){
		
	}
	
	public void deleteReservation(){
		
	}

	public ReservationService getReservationService() {
		return reservationService;
	}

	public void setReservationService(ReservationService reservationService) {
		this.reservationService = reservationService;
	}

	public Reservation getReservation() {
		return reservation;
	}

	public void setReservation(Reservation reservation) {
		this.reservation = reservation;
	}

	public Set<Vol> getVolList() {
		return volList;
	}

	public void setVolList(Set<Vol> volList) {
		this.volList = volList;
	}

	public Set<Hotel> getHotelList() {
		return hotelList;
	}

	public void setHotelList(Set<Hotel> hotelList) {
		this.hotelList = hotelList;
	}

	public Set<Activite> getActiviteList() {
		return activiteList;
	}

	public void setActiviteList(Set<Activite> activiteList) {
		this.activiteList = activiteList;
	}

	public Set<Personne> getVoyageurList() {
		return voyageurList;
	}

	public void setVoyageurList(Set<Personne> voyageurList) {
		this.voyageurList = voyageurList;
	}

	public int getIdVilleDepart() {
		return idVilleDepart;
	}

	public void setIdVilleDepart(int idVilleDepart) {
		this.idVilleDepart = idVilleDepart;
	}

	public int getIdVilleDestination() {
		return idVilleDestination;
	}

	public void setIdVilleDestination(int idVilleDestination) {
		this.idVilleDestination = idVilleDestination;
	}

	public List<Reservation> getReservations() {
		return reservations;
	}

	public void setReservations(List<Reservation> reservations) {
		this.reservations = reservations;
	}	
	
	
}
